/*
 * MODULE  NAME  :
 * PROGRAM NAME  : renrendaigetlist.h
 * AUTHOR        : HOTMOCHA
 * CREATE  DATE  : 2015-01-16 21:50:39
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_RENRENDAIGETLIST_H_
#define _H_RENRENDAIGETLIST_H_
#include "ilog.h"
#include "type.h"
#include "simplebuf.h"
#include "gumbo.h"
#include "list.h"
#include "yajl/yajl_tree.h"
#include "renrendai.h"

typedef struct Renrendai_List* RR_List;
typedef struct {
        long loanId;
        char title[51];
        char picture[51];
        double amount;
        double interest;
        int months;
        char loanType[21];
        char status[21];
        BOOL allowAccess;
        char utmSource[51];
        char openTime[25];
        char startTime[25];
        char readyTime[25];
        int surplusAmount;
        int finishedRatio;
        BOOL repaidByGuarantor;
        long borrowerId;
        BOOL forbidComment;
        char nickName[51];
        char borrowerLevel[2];
        char displayLoanType[11];
        BOOL currentIsRepaid;
        int amountPerShare;
        BOOL oldLoan;
        int interestPerShare;
        int principal;
        int leftMonths;
        BOOL overDued;
        char beginBidTime[51];
        int productId;
}Renrendai_List ;
#define RENRENDAIJSONLISTID             "loan-list-rsp"

int ParsePageCntAndDebitList(struct HttpReq *req);

#endif

